import request from '@/utils/request'

// 查询活动浏览记录列表
export function listActivitybrowse(query) {
  return request({
    url: '/merchant/activitybrowse/list',
    method: 'get',
    params: query
  })
}

// 查询活动浏览记录详细
export function getActivitybrowse(id) {
  return request({
    url: '/merchant/activitybrowse/' + id,
    method: 'get'
  })
}

// 新增活动浏览记录
export function addActivitybrowse(data) {
  return request({
    url: '/merchant/activitybrowse',
    method: 'post',
    data: data
  })
}

// 修改活动浏览记录
export function updateActivitybrowse(data) {
  return request({
    url: '/merchant/activitybrowse',
    method: 'put',
    data: data
  })
}

// 删除活动浏览记录
export function delActivitybrowse(id) {
  return request({
    url: '/merchant/activitybrowse/' + id,
    method: 'delete'
  })
}

// 导出活动浏览记录
export function exportActivitybrowse(query) {
  return request({
    url: '/merchant/activitybrowse/export',
    method: 'get',
    params: query
  })
}